package com.tuanbiao.data.entity;

import android.text.TextUtils;

import com.tuanbiao.constants.Constants;
import com.tuanbiao.dialog.SelectDialog;

/**
 * @author abiao
 * @date 2022/5/18 17:02
 * @description:
 */
public class ProjectCompanyType implements SelectDialog.SelectItem {
    private final String name;

    public ProjectCompanyType(String name) {
        this.name = name;
    }

    public boolean isBusiness() {
        return TextUtils.equals(name, Constants.CompanyType.BUSINESS);
    }

    @Override
    public String itemName() {
        return name;
    }

    @Override
    public String toString() {
        return "ProjectCompanyType{" +
                "name='" + name + '\'' +
                '}';
    }
}
